package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @create: 2024/7/18
 * @author: gyhe10
 * @description: 阿里云OOS属性配置类
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
@RefreshScope
public class AliyunOssConfig {

    /**
     * 阿里云OSS的endpoint
     */
    private String endpoint;

    /**
     * 阿里云OSS的bucketName
     */
    private String bucketName;

    /**
     * 阿里云的accessKeyId
     */
    private String accessKeyId;

    /**
     * 阿里云的accessKeySecret
     */
    private String accessKeySecret;
}
